<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<script src="../../static/jquery/datatables/jquery.dataTables.js"></script>
<body>
<div th:fragment="public_css">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link th:href="@{/bootstrap/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/jquery/datatables/jquery.dataTables.css}" rel="stylesheet">
    <link th:href="@{/jquery/datatables/dataTables.bootstrap.css}" rel="stylesheet">
</div>
<div th:fragment="public_js">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script th:src="@{/jquery/jquery-1.10.2.min.js}"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
    <script th:src="@{/jquery/datatables/jquery.dataTables.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/jquery/datatables/dataTables.bootstrap.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/js/common.js}" type="text/javascript" charset="utf-8"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.4.0/bootbox.min.js" type="text/javascript"
            charset="utf-8"></script>
</div>

<div th:fragment="menus">
    <aside>
        <div class="list-group">
            <a href="javascript:void(0);" th:href="@{/toWelcome}" title="sy" class="list-group-item active">
                首页<span class="glyphicon glyphicon-menu-right pull-right" style="
    padding-top: 1px;" aria-hidden="true"></span>
            </a>
            <a href="javascript:void(0);" th:href="@{/admin/toList}" title="ssgly" class="list-group-item">宿舍管理员管理<span
                    class="glyphicon glyphicon-menu-right pull-right"
                    style="
    padding-top: 1px;"></span></a>
            <a th:href="@{/student/toList}" title="xsgl" class="list-group-item">学生管理<span
                    class="glyphicon glyphicon-menu-right pull-right"
                    style="
    padding-top: 1px;"></span></a>
            <a th:href="@{/dorm/toList}" title="xsgl" class="list-group-item">宿舍楼管理<span
                    class="glyphicon glyphicon-menu-right pull-right"
                    style="
    padding-top: 1px;"></span></a>
            <a href="javascript:void(0);" title="qqjl" class="list-group-item">缺勤记录<span
                    class="glyphicon glyphicon-menu-right pull-right"
                    style="
    padding-top: 1px;"></span></a>
            <a href="javascript:void(0);" title="xgmm" class="list-group-item">修改密码<span
                    class="glyphicon glyphicon-menu-right pull-right"
                    style="
    padding-top: 1px;"></span></a>
        </div>
    </aside>
</div>
<div th:fragment="header">
    <header>
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1"
                            aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">书本商城</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <div class="nav navbar-nav navbar-right" style="line-height: 50px;">
                        <span id="span_account" style="color: red; margin-right: 10px;"
                              th:text="${session.loginAdmin.name}"></span>
                        <div class="btn-group" role="group">
                            <button type="button" class="btn btn-danger">修改密码</button>
                            <button id="btn_logout" type="button" class="btn btn-danger">注销</button>
                        </div>
                    </div>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    </header>
</div>

</body>
</html>